/**
 * 栈实例上的接口
 */
export interface StackType<T> {
    push(item: T): void,
    pop(): T | undefined,
    getPeek(): T | undefined,
    getItems(): Array<T>
    size(): number,
    isEmpty(): boolean,
    clear(): void,
}